.container {
  height: 100vh;
  background-color: #f4f4f4;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mainContent {
  width: calc(100vw - 64px);
  height: calc(100vh - 64px);
  background-color: #f4f4f4;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.header {
  background-color: transparent;
  padding: 32px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  .title {
    font-size: 24px;
    font-weight: 400;
    margin: 0;
    color: #262626;
  }
  
  .scenarioSelector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #595959;
    .scenarioSelectorText {
      font-weight: 400;
      font-size: 18px;
      margin-right: 8px;
    }
  }
}

.content {
  display: flex;
  flex: 1;
  height: 0;
  padding: 0 32px 32px 32px;
  gap: 24px;
}

// 通用的面板头部样式
.panelHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  padding-top: 24px;
  
  .panelTitle {
    font-size: 24px;
    font-weight: 400;
    margin: 0;
    color: #262626;
  }
  
}

.leftPanel {
  // flex: 1;
  width: 65%;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  
  .questionnaireTabs {
    flex: 1;
    display: flex;
    flex-direction: column;
    
    :global(.ant-tabs-nav) {
      margin: 0;
      padding: 0 24px;
    }
    
    :global(.ant-tabs-content-holder) {
      flex: 1;
      overflow: hidden;
    }
    
    :global(.ant-tabs-content) {
      height: 100%;
    }
    
    :global(.ant-tabs-tabpane) {
      height: 100%;
    }
    
    // 标签页样式
    :global(.ant-tabs-tab .ant-tabs-tab-btn) {
      font-size: 16px !important;
      font-weight: 300 !important;
      color: #5b5b5b !important;
      font-weight: normal !important;
    }
    
    :global(.ant-tabs-tab-active .ant-tabs-tab-btn) {
      color: #2163a5 !important;
      font-weight: normal !important;

      font-weight: 300 !important;
    }
    
    :global(.ant-tabs-ink-bar) {
      background-color: #2163a5 !important;
      font-weight: 300 !important;
    }
  }
  
  .tabContent {
    height: 100%;
    padding: 24px;
    overflow-y: auto;
    background-color: white;
  }
}

.rightPanel {
  flex: 1;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  
  .chatContainer {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
  .messagesContainer {
    flex: 1;
    padding: 16px 24px;
    overflow-y: auto;
    background-color: white;
  }
  
  .message {
    display: flex;
    margin-bottom: 16px;
    
    &.user {
      justify-content: flex-end;
      
      .messageBubble {
        background-color: #1890ff;
        color: white;
        margin-left: 8px;
      }
    }
    
    &.assistant {
      justify-content: flex-start;
      
      .messageBubble {
        background-color: #f5f5f5;
        color: #262626;
        margin-right: 8px;
      }
    }
  }
  
  .avatar {
    flex-shrink: 0;
  }
  
  .messageBubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 12px;
    word-wrap: break-word;
    
    .assistantName {
      font-size: 16px;
      font-weight: 500;
      margin-bottom: 4px;
      color: #262626;
    }
    
    .messageContent {
      font-size: 14px;
      line-height: 1.4;
    }
  }
  
  .inputContainer {
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    background-color: white;
    
    .messageInput {
      margin-bottom: 8px;
      font-size: 14px;
    }
    
    .inputActions {
      display: flex;
      justify-content: flex-end;
      
      .voiceButton {
        font-size: 14px;
        color: #1890ff;
        padding: 0;
      }
    }
  }
}

// Ant Design 组件样式覆盖
:global(.ant-tabs-tab .ant-tabs-tab-btn) {
  font-size: 16px !important;
  color: #5b5b5b !important;
  font-weight: normal !important;
}

:global(.ant-tabs-tab-active .ant-tabs-tab-btn) {
  color: #2163a5 !important;
  font-weight: normal !important;
}

:global(.ant-tabs-ink-bar) {
  background-color: #2163a5 !important;
}

:global(.ant-btn-primary) {
  background-color: #1890ff;
  border-color: #1890ff;
}

:global(.ant-select) {
  font-size: 16px;
}

.scenarioSelect {
  :global(.ant-select-selector) {
    background-color: #E6E6E6 !important;
    border: none !important;
    box-shadow: none !important;
  }
}

:global(.ant-input) {
  font-size: 14px;
}

:global(.ant-avatar) {
  width: 32px;
  height: 32px;
}
